package com.forenow.demo.demo21;

public class Test {
    public static void main(String[] args) {
        UserManager userManager=new UserManager();
        try {
            userManager.register("","");
            userManager.register("wes","123");
            userManager.register("wesker123","123456");  //数组越界
            userManager.register("wesker123","123456");  //越界了
        } catch (CustomException e) {
            e.printStackTrace();
        }finally {
            String[]  username=userManager.returnName();
            String[]  password=userManager.returnPass();
            for (int i = 0; i <2 ; i++) {
                System.out.println(username[i]);
                System.out.println(password[i]);
            }

        }
    }
}
